{extend name="common@base" /}
{block name="content"}
<section class="content" id="container">
  <form class="form" method="post">
    <div class="box box-primary">
      <div class="box-header with-border">
        <h3 class="box-title"></h3>
      </div>
      <div class="box-body">
        {foreach $controllers2 as $c=>$actions}
        <div class="form-group">
          <label>{$c}</label>
        </div>
        {/foreach}
        <div class="row hover">
          <div class="col-xs-1">
            <button type="button" class="btn btn-default btn-sm js-check-row">全选</button>
          </div>
          <div class="col-xs-3">
            <span>{$c}</span>
          </div>
          <div class="col-xs-8">
            <div class="row">
              {foreach $actions as $action=>$is_checked}
              <div class="col-xs-3">
                <div class="checkbox-inline">
                  <label>
                    <input type="checkbox" name="form[]" value="{$c}\{$action}" {$is_checked ? 'checked' : ''}
                    class="js-check" >{$action}</label>
                </div>
              </div>
              {/foreach}
            </div>
          </div>
        </div>

      </div>
      <div class="box-footer">
        <div class="">
          <button id="btn_save" class="btn btn-primary">保存</button>
          <a href="javascript:history.back()" class="btn btn-default">返回</a>
        </div>
      </div>
    </div>
  </form>

</section>
{/block}
{block name="page_script"}

{/block}

